#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int fibonacci(int n)
{
	if (n == 0 || n == 1)
	{
		return 1;
	}
	else
	{
		return fibonacci(n - 1) + fibonacci(n - 2);
	}
}
int main()
{
	int A, B,count;
	count = 0;
	scanf("%d %d", &A, &B);
	for (int i = A - 1;i < B;i++)
	{
		
		printf("%d", fibonacci(i));
		count++;
		if (count != 5)
			printf(" ");
		if (count % 5 == 0)
		{
			printf("\n");
		}
	}
	return 0;
}